#! /usr/bin/ruby

puts "Input a number: "
input = gets
output = (input.to_i < 0 )? 0 : input
puts output
